class A:
    def __init__(self):
        print("Enter A")
        print("Leave A")


class B(A):
    def __init__(self):
        print("Enter B")
        super(B, self).__init__()
        print("Leave B")


class C(B, A):
    def __init__(self):
        print("Enter C")
        super(C, self).__init__()
        print("Leave C")


c = C()
print(C.mro())